const Layout = () => import('@/layout/index.vue')

export default {
    path: '/group_example',
    component: Layout,
    redirect: '/group_example/index',
    name: 'ComponentExampleGroup',
    meta: {
        title: '用户组查看',
        icon: 'sidebar-breadcrumb',
        isTrue: localStorage.getItem("MEDIA_USER_INFO") && !(JSON.parse(localStorage.getItem("MEDIA_USER_INFO")).role == 'ADMIN')
    },
    children: [
        {
            path: 'index',
            component: () => import('@/views/group_example/index.vue'),
            name: 'ComponentExampleGroup',
            meta: {
                title: '用户组查看',
                sidebar: false,
                breadcrumb: false,
                activeMenu: '/group'

            }
        },
        {
            path: 'group_add',
            name: 'groupExampleAdd',
            component: () => import('@/views/group_example/add.vue'),
            meta: {
                title: '用户组新增',
                sidebar: false,
                activeMenu: '/group_example/add'
            }
        },
        {
            path: 'group_edit',
            name: 'groupExampleEdit',
            component: () => import('@/views/group_example/edit.vue'),
            meta: {
                title: '用户组编辑',
                sidebar: false,
                activeMenu: '/group_example/editinfo'
            }
        }
    ]
}
